<?php
!function_exists('zeai_alone') && exit('Forbidden!');
$tipnum_str = '';
if(ifint($cook_uid)){
	$row = $db->ROW(__TBL_USER__,"tipnum","id=".$cook_uid." AND tipnum>0");
	$num= intval($row[0]);
	if($num>99){
		$tipnum_str = '<span id="num_btm">99+'.'</span>';
	}elseif($num>0){
		$tipnum_str = '<span id="num_btm">'.$num.'</span>';
	}
}
if($_ZEAI['Mnavbtmkind']==2){
	$Mnavbtm = json_decode($_ZEAI['Mnavbtm'],true);
	$nn=0;
	if(@is_array($Mnavbtm) && @count($Mnavbtm)>0){
		foreach ($Mnavbtm as $V){
			$title=$V['title'];$path1=$V['path1'];$url=$V['url'];
			if(empty($title) || empty($path1) || empty($url))continue;
			$nn++;
		}
	}
}
if($_ZEAI['Mnavbtmkind']==2 && $nn>0 ){
	$ww = intval(100/$nn);?>
    <style>.navdiy a.ed font,.navdiy a:hover font{color:<?php echo $_ZEAI['mob_mbcolor'];?>}.navdiy a{width:<?php echo $ww;?>%}</style>
	<div class="navdiy">
    	<div class="shadow"></div><?php
		foreach ($Mnavbtm as $V){
			$title=urldecode($V['title']);
			$var  =urldecode($V['var']);
			$path1=$V['path1'];
			$path2=$V['path2'];
			$url=urldecode($V['url']);
			$pathok=($nav==$var)?$path2:$path1;
			if(empty($title) || empty($path1) || empty($url))continue;?>
            <a href="<?php echo $url; ?>"<?php if($nav==$var)echo' class="ed"';?>><i><img src="<?php echo UP.$pathok;?>" /><?php if($var=='my_msg'){echo $tipnum_str;}?></i><font><?php echo $title;?></font></a>
		<?php }?>
	</div>
<?php }else{ ?>
	<style>
    .nav2 a.ed font,.nav2 a:hover font{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
    .nav2 a:hover i,.nav2 a.ed i{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
	<?php if(!@in_array('hn',$navarr)){?>nav a{width:25%}<?php }?>
	.nav2 a.enter em{width:4.8rem;height:4rem;line-height:4rem;font-size:2rem;margin:.6rem auto 0 auto;display:block;background-image:-webkit-linear-gradient(-90deg,rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.7) 0%,rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.9) 100%);border-radius:2rem;color:#fff;box-shadow: 0 0 1.5rem rgb(0 0 0 / 8%)}
    </style>
    <div class="nav2">
        <div class="shadow"></div>
        <a href="<?php echo HOST; ?>"<?php if($nav=='index')echo' class="ed"';?>><i class="ico<?php echo($nav=='index')?' navgif':'';?>">&#xe666;</i><font>首页</font></a>
        <a href="<?php echo mHref('hongniang'); ?>"<?php if($nav=='hn')echo' class="ed"';?>><i class="ico<?php echo($nav=='hn')?' navgif':'';?>">&#xe613;</i><font>红娘</font></a>
        <a class="enter" id="enter"><em class="ico">&#xe614;</em></a>
        <a href="<?php echo mHref('my_msg'); ?>"<?php if($nav=='my_msg')echo' class="ed"';?>><i class="ico<?php echo($nav=='my_msg')?' navgif':'';?>">&#xe721;<?php echo $tipnum_str;?></i><font>消息</font></a>
        <a href="<?php echo mHref('my'); ?>"<?php echo($nav=='my')?' class="ed"':'';?>><i class="ico<?php echo($nav=='my')?' navgif':'';?>">&#xe664;</i><font>我的</font></a>
    </div>
    <div class="enter_box" id="enter_box">
    	<div class="navlogo">
        	<img src="<?php echo UP.$_ZEAI['logo'];?>?<?php echo $_ZEAI['cache_str'];?>">
        	<h2>服务大厅</h2>
        </div>
        <div class="navlist">
            <a href="<?php echo HOST;?>"><i class="_index ico">&#xe666;</i><span>首页</span></a>
            <?php if(@in_array('huxuan',$navarr)){?><a href="<?php echo mHref('huxuan');?>"><i class="_huxuan ico">&#xe6c6;</i><span>互选</span></a><?php }?>
            <?php if(@in_array('manghe',$navarr)){?><a href="<?php echo mHref('manghe');?>"><i class="_manghe ico">&#xe667;<b>新</b></i><span>盲盒</span></a><?php }?>
            <?php if(@in_array('trend',$navarr)){?><a href="<?php echo mHref('trend');?>"><i class="_trend ico">&#xe63b;</i><span>动态</span></a><?php }?>
            <a href="<?php echo mHref('cert');?>" style="display:none"><i class="_tg ico">&#xe66b;</i><span>认证</span></a>
            <?php if(@in_array('dating',$navarr)){?><a href="<?php echo mHref('dating');?>"><i class="_dating ico">&#xe653;</i><span>约会</span></a><?php }?>
            <?php if(@in_array('video',$navarr)){?><a href="<?php echo mHref('video');?>"><i class="_video ico">&#xe68a;</i><span>视频</span></a><?php }?>
            <?php if(@in_array('shop',$navarr)){?><a href="<?php echo mHref('shop');?>"><i class="_shop ico">&#xe71a;</i><span>商盟</span></a><?php }?>
            <?php if(@in_array('tg',$navarr)){?><a href="<?php echo mHref('my_tg');?>"><i class="_hb ico">&#xe61d;<b>新</b></i><span>推广</span></a><?php }?>
            <?php if(@in_array('hn',$navarr)){?><a href="<?php echo mHref('hongniang');?>"><i class="_hn ico">&#xe613;</i><span>红娘</span></a><?php }?>
            <?php if(@in_array('hn',$navarr)){?><a href="<?php echo mHref('my_hongniang');?>"><i class="_myhn ico">&#xe65d;</i><span>牵线</span></a><?php }?>
            <?php if(@in_array('party',$navarr)){?><a href="<?php echo mHref('party');?>"><i class="_party ico">&#xe695;</i><span>活动</span></a><?php }?>
            <?php if(@in_array('article',$navarr)){?><a href="<?php echo mHref('article');?>"><i class="_article ico">&#xe654;</i><span>学堂</span></a><?php }?>
            <?php if(@in_array('qun',$navarr)){?><a href="<?php echo mHref('qun');?>"><i class="_qun ico">&#xe647;<b>新</b></i><span>单身群</span></a><?php }?>
            <?php if(@in_array('lovetest',$navarr)){?><a href="<?php echo mHref('lovetest');?>"><i class="_msg ico">&#xe65a;</i><span>情感测试</span></a><?php }?>
            <a href="<?php echo mHref('vip');?>"><i class="_vip ico">&#xe611;</i><span>开通VIP</span></a>
            <a href="<?php echo HOST;?>/m/my_set.php"><i class="_set ico">&#xe902;</i><span>设置</span></a>
            <div id="enter_close"><i class="ico">&#xe606;</i></div>
        </div>
    </div>
    <script>
	enter.onclick=function(){zeai.mask({son:enter_box,maskcls:'enter_mask',time:0});}
	enter_close.onclick=function(){Menter_box.click();}
    </script>
    
<?php }?>
<div class="bottomblank"></div>
</body>
</html>